home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
(A)TA
/
(A)TAK.ADF
/
Arp_v1.04
/
MANUAL.ARC
/
Atol
< prev
next >
Wrap
Text File
|
1987-11-19
|
1KB
|
67 lines
Atol(31.0) ARP Programmers Manual Atol(31.0)
NAME
Atol -- Convert ascii string to long int.
SYNOPSIS
intval = Atol("string")
d0 a0
FUNCTION
Convert "string" to a long integer. This function will skip
leading whitespace. This function returns an error if a
non-whitespace non-digit is encountered during processing.
INPUTS
string -- pointer ascii string, which may be null
terminated or whitespace terminated.
The digits may have leading whitespace.
RESULT
If a non-numeric is encountered during processing (other
than whitespace or a null terminator), this function will
return with the Z flag SET, and the offending character in
d0. If calling from 'C', the binding routine for this
function will place the error value ERRBADINT in the global
long Errno if there is an error. Errno is not cleared on a
succesful return.
BUGS
Values which cannot be represented as a 32bit integer will
not cause an error.
AUTHOR
SDB
Page 1 (printed 11/19/87)